//
//  MethodTool.h
//  Learn
//
//  Created by zyl on 2024/4/3.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MethodTool : NSObject
+ (double)getTextHeightWithStr:(NSString *)str font:(UIFont *)font ViewWidth:(double)width;

+ (double)getTextWidthWithStr:(NSString *)str font:(UIFont *)font ViewHeight:(double)height;

+ (NSString *)dateToStyle1WithDate:(double)date;//yyyy-MM-dd hh:mm

+ (NSDate *)dateStrToDateWithStr:(NSString *)date;

+ (void)callWithMobileNumber:(NSString *)mobile;

+ (void)getCookieWithwebView:(WKWebView *)web success:(void(^)(BOOL success))successBlock;

@end

NS_ASSUME_NONNULL_END
